package validator

import (
	"gitee.com/csingo/cValidator/rules"
)

type HelloValidator struct{}

func (i *HelloValidator) ValidatorName() (app, name string) {
	return "demo", "HelloValidator"
}

func (i *HelloValidator) Rules() map[string][]*rules.ValidatorRules {
	return map[string][]*rules.ValidatorRules{
		"Say": {
			{Field: "name", Rules: []*rules.ValidatorRule{{Name: "required"}}},
		},
	}
}
